function SearchControl(){}

SearchControl.prototype = new GControl();

SearchControl.prototype.initialize = function(map) {

 var container = document.createElement("div");

 var form=document.createElement("form");
 form.setAttribute("action","main.php");
 form.setAttribute("method","post");

 var searchSelect=document.createElement("select");
 searchSelect.setAttribute("name","searchSelect");
 var i;var option;for(i in classificationsWithNumbers){
  option=document.createElement("option");
  var classification=classificationsWithNumbers[i];
  option.appendChild(document.createTextNode(classification));
  searchSelect.appendChild(option);
 }form.appendChild(searchSelect);
  
 var searchButton=document.createElement("button");
 searchButton.setAttribute("value","Buscar");
 searchButton.setAttribute("type","submit");
 searchButton.appendChild(document.createTextNode("Buscar"));
 form.appendChild(searchButton);

 container.appendChild(form); 
 
 map.getContainer().appendChild(container);
 return container;

}//initialize

SearchControl.prototype.getDefaultPosition = function() {
 return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(110, 7));
}


